package com.p2psys.tool.jcaptcha;

import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
import com.octo.captcha.service.image.ImageCaptchaService;

/** 
 * JCaptcha的单例
 
 * 
 */  
public class CaptchaServiceSingleton {  
     private static ImageCaptchaService instance =new DefaultManageableImageCaptchaService(  
               new FastHashMapCaptchaStore(), new RdImageEngine(), 180,  
               100000 , 75000); 
   /*  private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(  
             new FastHashMapCaptchaStore(), new GMailEngine(), 180,  
             100000 , 75000); */ 
    public static ImageCaptchaService getInstance(){  
        return instance;  
    }  
}  